package com.jnzc.ocr.serv.shop.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.jnzc.ocr.dependencies.serv.mybatis.MybatisServiceImpl;
import com.jnzc.ocr.serv.shop.entity.ShopRefund;
import com.jnzc.ocr.serv.shop.filter.ShopRefundFilter;
import com.jnzc.ocr.serv.shop.mapper.ShopRefundMapper;
import com.jnzc.ocr.serv.shop.service.ShopRefundService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author zhangcm
 * @version 1.0, 2017-09-29
 */
@Service
public class ShopRefundServiceImpl extends MybatisServiceImpl<ShopRefundMapper, ShopRefund, ShopRefundFilter> implements ShopRefundService {

    @Override
    protected void fillEntityWrapper(EntityWrapper<ShopRefund> ew, ShopRefundFilter filter) {
        ShopRefund entity = new ShopRefund();
        entity.setShopId(filter.getShopId());
        entity.setType(filter.getType());
        ew.setEntity(entity);
    }
}
